package fm.controller;

import fm.cache.AreaCache;
import fm.mongoService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 61741 on 2018/2/7.
 */
@Controller
@RequestMapping("/gooddetail")
public class GoodDetailController extends BaseController {
    @Autowired
    UserService userService;

    @RequestMapping("/index/{goodID}")
    public String index(ModelMap modelMap, @PathVariable String goodID) {
        modelMap.put("province", AreaCache.getAllProvince());
        modelMap.put("goodId",goodID);
        return "portal/good";
    }
}
